/*
 * @Author: your name
 * @Date: 2021-01-07 20:26:04
 * @LastEditTime: 2021-01-07 22:17:08
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \projc:\Users\zj\Desktop\first_proj\main.c
 */
#include "stm32f10x_rcc.h"
#include "stm32f10x_gpio.h"
 
int main_lib(void)
{
	GPIO_InitTypeDef led;
	
	RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC,ENABLE);
	led.GPIO_Pin = GPIO_Pin_13;
	led.GPIO_Mode = GPIO_Mode_Out_PP;
	led.GPIO_Speed = GPIO_Speed_50MHz;
	GPIO_Init(GPIOC,&led);
	GPIO_WriteBit(GPIOC,GPIO_Pin_13,Bit_SET);

	while(1)
	{
		GPIO_WriteBit(GPIOC,GPIO_Pin_13,Bit_RESET);
	}

}
